######
ATSHOMEQ="$(ATSHOME)"
ATSCC=$(ATSHOMEQ)/bin/atscc
ATSCTRB=\
  $(ATSHOMEQ)/contrib/jansson/atsctrb_jansson.o \
#CFLAGS=`pkg-config jansson --cflags`
LIBS=`pkg-config jansson --libs`
INCLUDE1= -I ../CATS -IATS ../SATS -IATS ../DATS -IATS $(ATSHOME)
######

#checkall:

######

LDFLAGS= -lgsl -lgslcblas -lm -lpthread

compall: \
  test01 \


######

test01: test_random.dats ../DATS/random.dats ../DATS/container.dats
	$(ATSCC) $(INCLUDE1) -o test_random \
          test_random.dats ../DATS/random.dats ../DATS/container.dats $(ATSCTRB) $(LIBS) -D_ATS_MULTITHREAD $(LDFLAGS)

test02: test_container.dats ../DATS/container.dats
	$(ATSCC) $(INCLUDE1) -o test_container \
          test_container.dats ../DATS/container.dats $(ATSCTRB) $(LIBS) -D_ATS_MULTITHREAD $(LDFLAGS)

######

clean:
	rm -f *_?ats.c *.o *~ test_random test_container

cleanall: clean
	rm -f test_random test_container

###### end of [Makefile] ######
